Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Help Using ?{modifier|0} and Drop-Down Prompts together

1466813670

Edited 1466813883
Hello FIrst of im not the best with code but im learning but run into a problem  with ?{modifier|0} and the Drop-Down Prompts i think my problem is both of them uses the "|" in there funktions and taht is messing me up. im hoping one of you have a work around :) what i want the code to do is give me a drop-down menu (and taht works fine) and after that i want to add a value to the "1d100<1+valuable" but what i does insted is trying to use the rest of the Dropdown menu as my value i hope you guys understand what im trying to do code &{template:default} {{name= Deamion Rolls}} {{Success= ?{Skill|Lifting,[[1d100<[[1 +?{modifier|0} ]]]] | Resistance (Physical) [[1d100<1]] | Block [[1d100<1]]| Bladed Weapons [[1d100<1]]| Blunt Weapons [[1d100<1]]| Unarmed Fighting [[1d100<1]]| Stealth [[1d100<13]]| Awareness [[1d100<13]]| Dodge [[1d100<13]]| Archery [[1d100<1]]| Thrown Weapons [[1d100<1]] | "Guns" [[1d100<1]] | Study/Learn [[1d100<30]] | Spell Casting [[1d100<75]] | Resistance (Mental) [[1d100<30]] | Judge Intent [[1d100<13]] | Knowledge [[1d100<13]] | Resist (Poisons) [[1d100<9]] | Resist (Alcohol) [[1d100<9]] | Resist (Pain) [[1d100<9]] | Convince [[1d100<24]] | Deceive [[1d100<24]] | Charm [[1d100<29]] | Weapon Smithing [[1d100<8]] | Armor Smithing [[1d100<8]] | Jewling [[1d100<8]]}}} /code
if you remove the +?{modifier|0} the code runs fine and you can see what im looking for i just need to be able to add a value to the <[[1]] part
1466815474

Edited 1466815676
Lithl
Pro
Sheet Author
API Scripter
Try replacing the | in the nested query with | and replace the } with }. The result would be: ?{Skill|Lifting,[[1d100<[[?{modifier|0}]]]] |...
Many many Thanks Brian :) that solved all my problems thank you 
1466816722

Edited 1466816738
danm. when i save the Macro again and uses it or reopen it it turns back to +?{modifier|0} and the macro fails
1466817654

Edited 1466839348
Clipcomet said: danm. when i save the Macro again and uses it or reopen it it turns back to +?{modifier|0} and the macro fails At this time, reopening a Macro (saved under My Settings ) causes HTML entities within to be reverted; if the Macro is then saved, so are those reversions. This behaviour is not present within Abilities . For more information, please see: Advanced Usage for Roll Queries
nice :) learing so much today :) thx for the fix :) both of you have made mine/ours DND on this site even better messy but complet code code &{template:default} {{name= Deamion Rolls}} {{Success= ?{Skill|Lifting,Lifting[[1d100<[[1+?{modifier|0}]]]] | Resistance (Physical),Physical [[1d100<[[1+?{modifier|0}]]]] | Block,Block [[1d100<[[1+?{modifier|0}]]]]| Bladed Weapons,Bladed Weapons [[1d100<[[1+?{modifier|0}]]]]| Blunt Weapons,Blunt Weapons [[1d100<[[1+?{modifier|0}]]]]| Unarmed Fighting,Unarmed Fighting [[1d100<[[1+?{modifier|0}]]]]| Stealth,Stealth [[1d100<[[13+?{modifier|0}]]]]| Awareness,Awareness [[1d100<[[13+?{modifier|0}]]]]| Dodge,Dodge [[1d100<[[13+?{modifier|0}]]]]| Archery,Archery [[1d100<[[1+?{modifier|0}]]]]| Thrown Weapons,Thrown Weapons [[1d100<[[1+?{modifier|0}]]]] | "Guns","Guns" [[1d100<[[1+?{modifier|0}]]]] | Study/Learn,Study/Learn [[1d100<[[30+?{modifier|0}]]]] | Spell Casting,Spell Casting [[1d100<[[75+?{modifier|0}]]]] | Resistance (Mental),Mental [[1d100<[[30+?{modifier|0}]]]] | Judge Intent,Judge Intent [[1d100<[[13+?{modifier|0}]]]] | Knowledge,Knowledge [[1d100<[[13+?{modifier|0}]]]] | Resist (Poisons),Resist (Poisons) [[1d100<[[9+?{modifier|0}]]]] | Resist (Alcohol),Resist (Alcohol) [[1d100<[[9+?{modifier|0}]]]] | Resist (Pain),Resist (Pain) [[1d100<[[9+?{modifier|0}]]]] | Convince,Convince [[1d100<[[24+?{modifier|0}]]]] | Deceive,Deceive [[1d100<[[24+?{modifier|0}]]]] | Charm,Charm [[1d100<[[29+?{modifier|0}]]]] | Weapon Smithing,Weapon Smithing [[1d100<[[8+?{modifier|0}]]]] | Armor Smithing,Armor Smithing [[1d100<[[8+?{modifier|0}]]]] | Jewling,Jewling [[1d100<[[8+?{modifier|0}]]]]}}} /code